
<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>第一个页面</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" href="css/bootstrap-theme.css">
    <link rel="stylesheet" href="css/bootstrap.min.css">
	<link rel="stylesheet" href="css/my_su.css">
    <link rel="stylesheet" href="css/index.css">
    <script src="js/bootstrap.min.js" type="application/javascript"></script>

</head>
<body style="background-color: #f6f6f1;">

<div class="logo">
    <div class="img">
        <a href="/"><img src="images/7.png" ></a>
    </div>
    <div class="font_tushuguan">
        <h3 class="shadow_tu">世 木 书 评</h3>
    </div>
    <div class="denglu" id="denglu_offect">
        <a th:if="${session.user == null}" href="https://github.com/login/oauth/authorize?client_id=33602684f31aa6ed32fb&redirect_uri=http://localhost:8080/callback&scope=user&state=1">登 录</a>
        <div th:if="${session.user != null}">
            <p th:text="${session.user.getName()}"></p>
        </div>
    </div>
</div>
<!--导航-->
<header id="nav">
    <ul class="nav justify-content-center col-sm-12">

    </ul>
</header>


<div class="container">
	<div class="row">
			<div class="col-lg-9">
			<h2><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span>   发起评论</h2>
			<hr>
			<form action="/comment" method="post">
				  <div class="form-group">
				    <label for="title">评论标题</label>
				    <input type="text" class="form-control" id="title" placeholder="评论标题" name="title">
				  </div>
				  <div class="form-group">
				    <label for="context">评论内容</label>
					<textarea class="form-control"rows="10" cols="30" name="context" id="context"></textarea>
				  </div>
                    <span class="alert alert-danger" th:text="${error}"></span>
				  <button type="submit" class="btn btn-success">发布</button>
			</form>
		</div>
		
		<!-- <div class="col-lg-3" style="background-color: #0F0F0F;"> -->
	</div>
	
</div>

</body>
</html>

